Const FAR_LEFT_BOTTOM:Int	= 0
Const FAR_LEFT_TOP:Int		= 1
Const FAR_RIGHT_TOP:Int		= 2
Const FAR_RIGHT_BOTTOM:Int	= 3
Const NEAR_RIGHT_BOTTOM:Int	= 7
Const NEAR_LEFT_BOTTOM:Int	= 6
Const NEAR_LEFT_TOP:Int		= 5
Const NEAR_RIGHT_TOP:Int	= 4 

Const EXTENT_NULL:Int		= 0
Const EXTENT_FINITE:Int		= 1
Const EXTENT_INFINITE:Int	= 2

Type AxisAlignedBox
	Field _ptr:Byte ptr
	Global _list:TList
	
	Method New()
		If Self._list = Null Then Self._list = New TList
		Self._list.AddLast(Self)
	End Method
	
rem
bbdoc: Gets the size of the box.
endrem
	Method GetSize:bVector3()
		Local sze:Byte ptr	= o_aab_getSize(Self._ptr)
		Local vec3:bVector3
		
		If sze <> Null Then vec3 = bVector3.fromC(sze)
		
		Return vec3
	End Method
End Type